package com.lang.classloader;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Description
 * @Author ______   __   __   __   ______   __    __
 * /      \ /  | /  | /  | /      \ /  |  /  |
 * $$$$$$  |$$ | $$ | $$ | $$$$$$  |$$ |  $$ |
 * /    $$ |$$ | $$ | $$ | /    $$ |$$ |  $$ |
 * /$$$$$$$ |$$ \_$$ \_$$ |/$$$$$$$ |$$ \__$$ |
 * $$    $$ |$$   $$   $$/ $$    $$ |$$    $$ |
 * $$$$$$$/  $$$$$/$$$$/   $$$$$$$/  $$$$$$$ |
 * /  \__$$ |
 * $$    $$/
 * $$$$$$/
 * @Version V1.0.0
 * @Since 1.0
 * @Date 21.3.22
 */

public class OneClassFileTwoClassObject {
    public final static OneClassFileTwoClassObject INSTANCE = new OneClassFileTwoClassObject();
    public final static Date INSTANCE_DATE = new Date();
    static {
        System.out.println(OneClassFileTwoClassObject.class.getSimpleName()+"静态域被初始化了"+INSTANCE);
        System.out.println(OneClassFileTwoClassObject.class.getSimpleName()+"静态域被初始化了"+INSTANCE_DATE);
    }
    public static OneClassFileTwoClassObject getInstance(){
        return INSTANCE;
    }

    public OneClassFileTwoClassObject() {
        System.out.println("OneClassFileTwoClassObject：被"+OneClassFileTwoClassObject.class.getClassLoader()+"初始化了");
    }
}
